document.getElementById('createSquare').addEventListener('click', function () {
    chrome.tabs.query({ active: true, currentWindow: true }, function (tab) {
        chrome.tabs.sendMessage(tab[0].id, {
            command: "createSquare",
        });
    });
});